package priv.yiyuan.example.design;

/**
 * Windows 文件系统
 * <p>
 * 被适配对象
 *
 * @author YiYuan
 * @data 2025/8/8
 * @apoNote
 */
public class WindowsNativeFileSystem {

    public void createNewFile(String path) {
        System.out.println("Windows: Creating file at " + path);
    }

    public void removeFile(String path) {
        System.out.println("Windows: Deleting file at " + path);
    }

    public String readFileContent(String path) {
        return "Windows file content from " + path;
    }

    public void writeToFile(String path, String content) {
        System.out.println("Windows: Writing to file at " + path + ", content: " + content);
    }

    public String getFileMetadata(String path) {
        return "Windows file info: " + path + ", size: 1024 bytes";
    }
}
